#include "serialPort.h"
#include "serialPortImp.h"


extern "C"
JNIEXPORT jobject JNICALL
Java_com_lyn_serialport_SerialPort_open(JNIEnv *env, jobject thiz, jstring path,
                                               jint baud_rate, jint flags) {
    return open(env, thiz, path, baud_rate, flags);
}

extern "C"
JNIEXPORT jobject JNICALL
Java_com_lyn_serialport_SerialPort_getFileDescriptor(JNIEnv *env, jobject thiz){
    return getFileDescriptor(env,thiz);
}

extern "C"
JNIEXPORT jint JNICALL
Java_com_lyn_serialport_SerialPort_close(JNIEnv *env, jobject thiz) {
    return close(env, thiz);
}
